<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE html>
<html>
  <head>
    <base href="<%=basePath%>">
    <%@ taglib uri="/struts-tags" prefix="s"%>
    <%@include file="./headMeta.jsp" %>
  </head>
  <body class="skin-blue">
    <%@include file="./header.jsp" %>
    <div class="wrapper row-offcanvas row-offcanvas-left">
        <!-- Left side column. contains the logo and sidebar -->
        <%@include file="./sidebar.jsp" %>
        

      <!-- Right side column. Contains the navbar and content of the page -->
      <aside class="right-side">
        <!-- Content Header (Page header) -->
        <section class="content-header">
            <h1>
                订单
            </h1>
        </section>

        <!-- Main content -->
        <section class="content">
            <div class="row">
                <div class="col-md-6">
                    <div class="box box-primary">
                        <div class="box-header">
                            <h3 class="box-title">订单明细 - 单号${orderId }</h3>
                            <div class="box-tool" style="margin: 7px 7px 0 0;">
                                <ul class="pagination pagination-sm no-margin pull-right">
                                    <li><a href="javascript:void(0)">&laquo;</a></li>
                                    <li><a href="javascript:void(0)">1</a></li>
                                    <li><a href="javascript:void(0)">2</a></li>
                                    <li><a href="javascript:void(0)">3</a></li>
                                    <li><a href="javascript:void(0)">&raquo;</a></li>
                                </ul>
                            </div>
                        </div><!-- /.box-header -->
                        <div class="box-body no-padding">
                            <table class="table table-striped">
                                <tr>
                                    <th style="width: 10%">#</th>
                                    <th>名称</th>
                                    <th>单价</th>
                                    <th>数量</th>
                                    <th>小计</th>
                                    <!-- <th style="width: 10%"></th> -->
                                </tr>
                                <s:iterator value="#listorderItem" status="st">
                                  <tr>
                                    <td>${productList.get(st.index).pid}</td>
                                    <td>${productList.get(st.index).pname}</td>
                                    <td>${productList.get(st.index).price}</td>
                                    <td>${count}</td>
                                    <td>${productList.get(st.index).price*count}</td>
                                    <!-- <td><a href="orderItem/manageOrderItem.action?order_id=${orderId}&product_id=${productList.get(st.index).pid}" class="btn btn-primary btn-xs">编辑</a></td> -->
                                    <!-- <td><a href="orderItem/delOrderItem.action?order_id=${orderId}&product_id=${productList.get(st.index).pid}" class="btn btn-primary btn-xs">删除</a></td> -->
                                  </tr>
                                </s:iterator>
                            </table>
                        </div><!-- /.box-body -->
                    </div><!-- /.box -->
                </div><!-- /.col -->
            </div><!-- /.row -->
        </section><!-- /.content -->   
      </aside>
    </div><!-- ./wrapper -->
  </body>
  <%@include file="./javascript.jsp" %>
</html>
